package main

func twoSum(nums []int, target int) []int {
	numMap := make(map[int]int)
	for i, value := range nums {
		complement := target - value
		if index, ok := numMap[complement]; ok {
			return []int{index, i}
		}
		numMap[value] = i
	}
	return nil
}

func main() {

}
